package com.sneakxy.cloudbase.platform.config;

import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.sneakxy.cloudbase.platform.service.IShiroService;
import com.sneakxy.cloudbase.platform.service.SecurityShiroService;

@Configuration
@AutoConfigureBefore(ShiroConfig.class)
public class SecurityShiroConfig {

	@Bean
	@ConditionalOnMissingBean
	public IShiroService shiroService() {
		return new SecurityShiroService();
	}
	
}
